<%@ page language="java" import="java.util.*,com.gdpu.project.vo.Project" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	List<Project> projectlist = (List)request.getAttribute("projectlist"); 
	//Integer pageNo = (Integer) request.getAttribute("pageNo");
	//Integer count = (Integer) request.getAttribute("pageCount");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>项目信息浏览</title>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}
.font051 {
	font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}

.font201 {
	font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}

.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}
html {
	overflow-x: auto;
	overflow-y: auto;
	border: 0;
}
-->
</style>
		<link href="<%=basePath%>admin/css/css.css" rel="stylesheet"
			type="text/css" />
		<link href="<%=basePath%>admin/css/style.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript" src="<%=basePath%>admin/js/xiangmu.js"></script>
		<base href="<%=basePath%>">
	</head>
	<SCRIPT language=JavaScript>
	function sousuo() {
		window
				.open(
						"gaojisousuo.htm",
						"",
						"depended=0,alwaysRaised=1,width=800,height=510,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
	}
	function selectAll() {
		var obj = document.fom.elements;
		for ( var i = 0; i < obj.length; i++) {
			if (obj[i].name == "delid") {
				obj[i].checked = true;
			}
		}

	function unselectAll() {
		var obj = document.fom.elements;
		for ( var i = 0; i < obj.length; i++) {
			if (obj[i].name == "delid") {
				if (obj[i].checked == true)
					obj[i].checked = false;
				else
					obj[i].checked = true;
			}
		}
	}

	function link() {
		document.getElementById("fom").action = "xiangmu.htm";
		document.getElementById("fom").submit();
	}

	function on_load() {
		var loadingmsg = document.getElementById("loadingmsg");
		var mainpage = document.getElementById("mainpage");
		loadingmsg.style.display = "";
		mainpage.style.display = "none";

		loadingmsg.style.display = "none";
		mainpage.style.display = "";
	}
</SCRIPT>

	<body onload="on_load()">
		<form name="fom" id="fom" method="post" action="">
			<table id="mainpage" width="100%" border="0" cellspacing="0"
				cellpadding="0">

				<tr>
					<td height="30">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="62" background="<%=basePath%>admin/images/nav04.gif">

									<table width="98%" border="0" align="center" cellpadding="0"
										cellspacing="0">
										
										<tr>
											<td height="20">
												<span class="newfont07">当前页： 科研项目 - 结题项目列表</span>
												<td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table id="subtree1" style="DISPLAY: " width="100%" border="0"
							cellspacing="0" cellpadding="0">

							<tr>
								<td>
									<table width="95%" border="0" align="center" cellpadding="0"
										cellspacing="0">

										<tr>
											<td height="40" class="font42">
												<table width="100%" border="0" cellpadding="4"
													cellspacing="1" bgcolor="#464646" class="newfont03">

													<tr>
														<td height="20" colspan="13" align="center"
															bgcolor="#EEEEEE" class="tablestyle_title">
															&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
															结题项目列表&nbsp;
														</td>
													</tr>
													<tr>
														<td width="5%" align="center" bgcolor="#EEEEEE">
															序号
														</td>
														<td width="25%" height="20" align="center"
															bgcolor="#EEEEEE">
															项目名称
														</td>
														<td width="20%" align="center" bgcolor="#EEEEEE">
															项目类别
														</td>
														<td width="10%" align="center" bgcolor="#EEEEEE">
															项目负责人
														</td>
														<td width="10%" align="center" bgcolor="#EEEEEE">
															参与人数
														</td>
														<td width="10%" align="center" bgcolor="#EEEEEE">
															结题状态
														</td>
														<td width="20%" align="center" bgcolor="#EEEEEE">
															操作
														</td>
													</tr>
													<%if(projectlist!=null){
										 for(int i=0;i<projectlist.size();i++){
										 Project project = projectlist.get(i);
										 %>
													<tr align="center">
														<td bgcolor="#FFFFFF">
															<%=i+1 %>
														</td>
														<td bgcolor="#FFFFFF">
													<a href="<%=basePath %>projectInfo.action?projectId=<%=project.getId()%>"><%=project.getProjectName() %></a>
														</td>
														<td bgcolor="#FFFFFF">
															<%=project.getProjectType() %>
														</td>
														<td height="20" bgcolor="#FFFFFF">
														<a href="<%=basePath %>teacherInfo.action?teacherId=<%=project.getTeacherId()%>"><%=project.getTeacherName() %></a>
														</td>
														<td bgcolor="#FFFFFF">
															<%=project.getCyrs() %>
														</td>
														<td bgcolor="#FFFFFF">
															<%=project.getEndState() %>
														</td>
														<td bgcolor="#FFFFFF">
														<a href="<%=basePath %>EndState.action?projectId=<%=project.getId()%>">上传结题文件</a>
														</td>
													</tr>
														<%}}else{%>
															<tr>
														<td height="20" colspan="13" align="center"
															bgcolor="#FF0000" class="tablestyle_title">
															<span class="right-text09">目前没有项目信息</span>
														</td>
													</tr>
															<%
																} 
															 %>
		
	
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						
						<table width="95%" border="0" align="center" cellpadding="0"
							cellspacing="0">
							<tr>
								<td height="6">
									<img src="<%=basePath%>admin/images/spacer.gif" width="1"
										height="1" />
								</td>
							</tr>
							<tr>
								<td height="33">
									<table width="100%" border="0" align="center" cellpadding="0"
										cellspacing="0" class="right-font08">
										<tr>
											<td width="50%">
												
											</td>
											<td width="49%" align="right">
												[
												<a class="right-font08">首页</a> |
												<a class="right-font08">上一页</a> |
												<a class="right-font08">下一页</a> |
												<a class="right-font08">末页</a>] 转至：
											</td>
											<td width="1%">
												<table width="20" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td width="1%">
															<input name="textfield3" type="text"
																class="right-textfield03" size="1" />
														</td>
														<td width="87%">
															<input name="Submit23222" type="submit"
																class="right-button06" value=" " />
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<div align="center"><h3 style="color:#FF0000">${message}</h3></div>
		</form>
		<div id="loadingmsg"
			style="width: 100px; height: 18px; top: 0px; display: none;">
			<img src="<%=basePath%>admin/images/loadon.gif"/>
		</div>

	</body>
</html>
